﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Empires.Infrastructure.Entities.Entity;

namespace Empires.Portal.Web.Controllers
{
    public class HomeController : Controller
    {
        //
        // GET: /Home/

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult showcase()
        {
            return View();
        }

        public ActionResult templetedetail(int id)
        {
            return View();
        }

        [Authorize]
        public ActionResult Landing()
        {
            var username = HttpContext.User.Identity.Name;
            var corporation = new Corporation().Find(username);
            if (corporation != null)
            {
                return Redirect("/Us/index");
            }
            return View();
        }
    }
}
